<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <hdjs/>
    <bootstrap/>
    <link type="text/css" rel="stylesheet" href="./css/css.css"/>
</head>
<body>
<div class="wrap">
    <div class="title-header">修改分类</div>
    <form action="" method="post" class="form-inline hd-form">
        <table class="table1">
            <tr>
                <th class="w100">分类名称</th>
                <td  class="w100">
                    <input type="text" name="cname" class="w200" value="<?php echo $oldData['cname'];?>"/> 
                </td>
                <td>分类名称长度 1 到 20 位</td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                 <select name="pid" id="">
                 	<option value="0">顶级分类</option>
                    <?php foreach ($cateData as $k=>$v){?>
                    	<option value="<?php echo $v['pid'];?>"><?php echo $v['cname'];?></option>
                    <?php }?>
                 </select>
                </td>
                <td></td>
            </tr>


            <tr>
                <th class="w100">分类排序</th>
                <td>
                    <input type="text" name="csort" class="w200" value="<?php echo $oldData['sort'];?>"/>
                </td>
                <td>请填写1到65535的排序数字 </td>
            </tr>
            <tr>
                <th class="w100">所属类型</th>
                <td>
                   <select name="type_id" id="">
	                   <?php foreach ($typeData as $k=>$v){?>
	                   <option value="<?php echo $v['id'];?>"><?php echo $v['typename'];?></option>
	                   <?php }?>
                   </select>
                </td>
                <td></td>
            </tr>

 
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="修改"/>
            <input type="button" class="hd-success" value="返回"/>
        </div>
       
    </form>
</div>
</body>
</html>